import request from '@/utils/request';

export function getListPage(query) {
  return request({
    url: '/sysm/jcwSafeDays/',
    method: 'GET',
    params: query
  });
}

export function updateData(query) {
  return request({
    url: '/sysm/jcwSafeDays/',
    method: 'POST',
    data: query
  });
}

export function deleteData(query) {
  return request({
    url: `/sysm/jcwSafeDays/${query}`,
    method: 'DELETE'
  });
}

// 登录角色所在部门的安全天数
export function getSafeDays(query) {
  return request({
    url: '/sysm/jcwSafeDays/currentSafeDays',
    method: 'GET',
    params: query
  });
}
